package com.heima.model.common.dtos;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;

import java.io.Serializable;

public class PageResponseResult extends ResponseResult implements Serializable {
    @ApiModelProperty(value = "当前页")
    private Integer currentPage;
    @ApiModelProperty(value = "")
    private Integer size;
    private Long total;


    public PageResponseResult(Integer currentPage, Integer size, Long total) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }


    public PageResponseResult(Integer currentPage, Integer size, Long total,Object data) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
        this.setData(data);
    }
    public PageResponseResult() {

    }

    @ApiOperation(value = "获取当前页")
    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }
    @ApiOperation(value = "获取每页显示条数")
    public int getSize() {
        return size;
    }
    public void setSize(int size) {
        this.size = size;
    }
    @ApiOperation(value = "获取总条数")
    public Long getTotal() {
        return total;
    }
    public void setTotal(Long total) {
        this.total = total;
    }
}
